package com.vhall.component.controller.notice.facade;

import com.alibaba.fastjson.JSONObject;
import com.vhall.component.entity.notice.vo.NoticeListRspVo;
import com.vhall.component.entity.notice.vo.NoticeListVO;
import com.vhall.component.entity.notice.vo.SendNoticeReqVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.PostMapping;

/**
 * 公告
 * @author guoxin.wang
 * @date 2021/06/15 13:45
 */
@FeignClient(value = "NoticeFacade", path = "/v4/notice")
public interface NoticeFacade {

    /**
     * 公告列表
     *
     * @param reqVO
     * @return
     */
    @PostMapping("/notice-lists")
    NoticeListRspVo noticeLists(@Validated NoticeListVO reqVO);

    /**
     * 发布公告
     *
     * @param reqVo
     * @return
     */
    @PostMapping("/send-notice")
    JSONObject sendNotice(@Validated SendNoticeReqVo reqVo);


}